using Api.Filter;
using AutoMapper;
using Common.Utility;
using Interface.Volcengine;
using Interface.Volcengine.DTO.CVProcess;
using IServices.Com;
using Microsoft.AspNetCore.Mvc;

namespace Api.Controllers
{
    [NoLogin]
    public class LogController : BaseController
    {
        public LogController(IHttpContextAccessor httpContextAccessor, RedisUtil redisUtil, IMapper mapper)
            : base(httpContextAccessor, redisUtil, mapper)
        {
        }

        [HttpGet]
        public async Task InfoTest()
        {
            LogHelper.Info("123456");
        }

        [HttpPost]
        public async Task ErrorTest()
        {
            LogHelper.Error("123456", new Exception());
        }
    }
}
